package com.woniu.communitymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 业主表
 * @TableName owner
 */
@TableName(value ="owner")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Owner implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 业主姓名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 联系方式
     */
    @TableField(value = "tel")
    private String tel;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 身份证号
     */
    @TableField(value = "identity")
    private String identity;

    /**
     * 关联house表主键
     */
    @TableField(value = "house_id")
    private Integer houseId;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    private String houseNumbers;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}